package com.autumn.sms;

import java.io.Serializable;
import java.util.Date;

/**
 * 监听消息
 * 
 * @author 杨昌国 2018-12-07 11:08:05
 */
public class ChannelListenMessage implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 8132573232557893024L;

	private final Date startTime;
	private final Date endTime;
	private final SmsMessage message;
	private final SmsChannelConfigure channelConfigure;

	/**
	 * 实例化
	 * 
	 * @param startTime        开始时间
	 * @param endTime          结束时间
	 * @param message          消息
	 * @param channelConfigure 通道配置
	 */
	public ChannelListenMessage(Date startTime, Date endTime, SmsMessage message,
			SmsChannelConfigure channelConfigure) {
		super();
		this.startTime = startTime;
		this.endTime = endTime;
		this.message = message;
		this.channelConfigure = channelConfigure;
	}

	/**
	 * 获取开始时间
	 * 
	 * @return
	 */
	public Date getStartTime() {
		return startTime;
	}

	/**
	 * 获取结束时间
	 * 
	 * @return
	 */
	public Date getEndTime() {
		return endTime;
	}

	/**
	 * 获取消息
	 * 
	 * @return
	 */
	public SmsMessage getMessage() {
		return message;
	}

	/**
	 * 获取通道配置
	 * 
	 * @return
	 */
	public SmsChannelConfigure getChannelConfigure() {
		return channelConfigure;
	}
}
